<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.onlineMIS.ORM.entity.headQ.barcodeGentor.*"%>
<%@ include file="../../common/Style.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>禧乐仓连锁店管理信息系统</title>
<script>

</script>
</head>
<body>
	<script>
function saveUser(){
	var params = $.serializeObject($('#userInfoForm'));
    $.post("hrEvalJSON!createUpdateUser",params, updateUserBKProcess,"json");		
}
function updateUserBKProcess(data){
	var returnCode = data.returnCode;
	if (returnCode != SUCCESS)
		$.messager.alert('失败信息', data.message,'error');
	else {
		$.messager.alert('提示', data.message,'info');
		$.modalDialog.handler.dialog('close');
		$("#dataGrid").datagrid('reload');
	}		
}
function cancel(){
	$.modalDialog.handler.dialog('close');
}

</script>
	<s:form id="userInfoForm" name="userInfoForm" method="post"
		theme="simple" cssClass="easyui-form">
		<table width="90%" border="0" style="position:relative;top:15px;left:20px;">
			
			<tr class="InnerTableContent">
				<td align="center"><span style="color:red">*</span><strong>员工名称 :</strong></td>
				<td><s:hidden name="userInfor.user_id" /><input name="userInfor.user_name" id="userName" style="width:220px;" class="easyui-textbox" data-options="prompt:'请输入客户名字'"  value="<s:property value="userInfor.user_name"/>"/>		
				</td>
			</tr>
			<tr class="InnerTableContent">
				<td align="center"><strong>部门 :</strong></td>
				<td><s:select cssClass="easyui-combobox" style="width:150px" name="userInfor.department"  data-options="prompt:'请选择部门'"   id="department" listKey="key" listValue="value" headerKey="0" headerValue="全部" list="#{'01':'会计部','02':'销售部','03':'物流部','04':'运营部','05':'商品部'}" ></s:select></td>
			</tr>
			<tr class="InnerTableContent">
				<td align="center"><span style="color:red">*</span><strong>角色 :</strong></td>
				<td><s:select cssClass="easyui-combobox" style="width:150px"  name="userInfor.roleType" data-options="prompt:'请选择角色'"   id="roleType" listKey="chainRoleTypeId" listValue="chainRoleTypeName" headerKey="-1" headerValue="全部角色" list="roles" ></s:select></td>
			</tr>
			<tr class="InnerTableContent">
				<td align="center"><span style="color:red">*</span><strong>电话号码:</strong></td>
				<td><s:textfield id="phone" name="userInfor.mobilePhone" style="width:220px;"
						cssClass="easyui-textbox" 
						data-options="required:false,prompt:'请输入客户电话号码'" /></td>

			</tr>

			<tr class="InnerTableContent">
				<td align="center"><span style="color:red">*</span><strong>客户状态 :</strong></td>
				<td><s:select name="userInfor.resign" id="status" align="center"
						cssClass="easyui-combobox" style="width:100px;"
						list="#{'0':'正常','1':'离职'}" listKey="key" listValue="value" /></td>
			</tr>

			<tr class="InnerTableContent">
				<td></td>
				<td><a onclick="saveUser();"
					href="javascript:void(0);" data-options="iconCls:'icon-ok'" class="easyui-linkbutton">保存</a> <a
					onclick="cancel();" href="javascript:void(0);"  data-options="iconCls:'icon-redo'"
					class="easyui-linkbutton">退出</a></td>
			</tr>
		</table>
	</s:form>


</body>
</html>